import request from '@/utils/request'

// 查询证书发放管理列表
export function listCertificateIssue(query) {
  return request({
    url: '/training/certificateIssue/list',
    method: 'get',
    params: query
  })
}

// 查询证书发放管理详细
export function getCertificateIssue(certificateIssueId) {
  return request({
    url: '/training/certificateIssue/' + certificateIssueId,
    method: 'get'
  })
}

// 新增证书发放管理
export function addCertificateIssue(data) {
  return request({
    url: '/training/certificateIssue',
    method: 'post',
    data: data
  })
}

// 修改证书发放管理
export function updateCertificateIssue(data) {
  return request({
    url: '/training/certificateIssue',
    method: 'put',
    data: data
  })
}

// 删除证书发放管理
export function delCertificateIssue(certificateIssueId) {
  return request({
    url: '/training/certificateIssue/' + certificateIssueId,
    method: 'delete'
  })
}
